package com.boyunv.observer;
/*
 *@description
 *
 *@author boyunv
 *@create 2023/8/12 15:28
 *@version 1.0
 */

import com.boyunv.observer.example02.LotteryResult;
import com.boyunv.observer.example02.LotteryService;
import com.boyunv.observer.example02.LotteryServiceImpl;

public class Test {
 public static void main(String[] args) {
  LotteryServiceImpl lotteryService = new LotteryServiceImpl();
  LotteryResult result = lotteryService.lottery("123456765434");
  System.out.print(result);

  System.out.println("=========================");

  com.boyunv.observer.example03.LotteryServiceImpl ls = new com.boyunv.observer.example03.LotteryServiceImpl();
  LotteryResult msg = ls.lotteryAndMsg("123");
  System.out.println(msg);

 }
}
